package Polymorphic02;

/**
 * 猫（子类）
 */

public class Cats extends Animal{
    public Cats(){}
    public Cats(String name,int age,String denger){
        super(name, age, denger);
    }
    public void eat(){
        System.out.println(this.getName()+"喜欢吃鱼");
    }
    public void jump(){
        System.out.println("在树上跳");
    }
}
